package com.jumi.microservice.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jm.member.common.core.utils.DelFlag;
import com.jumi.microservice.entity.JmUserInvite;
import com.jumi.microservice.enums.CommonEnum;
import com.jumi.microservice.mapper.JmUserInviteMapper;
import com.jumi.microservice.service.IJmUserInviteService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.swagger.models.auth.In;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户邀请关系数据表 服务实现类
 * </p>
 *
 * @author 要挑客户管理团队
 * @since 2020-08-05
 */
@Service
public class JmUserInviteServiceImpl extends ServiceImpl<JmUserInviteMapper, JmUserInvite> implements IJmUserInviteService {


    @Override
    public JmUserInvite getInviteByUid(Integer uid) {
        QueryWrapper wrapper=new QueryWrapper();
        wrapper.eq("is_del", CommonEnum.否);
        wrapper.eq("uid",uid);
        return getOne(wrapper);
    }
}
